package com.example.hxpc.guidancemanagement.model;

/**
 * Created by tao on 2017/11/26.
 * 需要调用的API
 */

public class ApiInfo {
    public static ApiInfo mInstance;
    public static String serverUrl = "http://120.78.188.189:8080/GuidanceManagement";
    public static final String loginUrl = serverUrl+"/login/userLogin";//登录
    public static final String registerUrl = serverUrl+"/register/userRegister";//注册
    public static final String changeNameUrl = serverUrl+"/change/changeName";//修改昵称
    public static final String changePhoneUrl = serverUrl+"/change/changePhone";//修改手机号
    public static final String forgetPasswordUrl = serverUrl+"/change/forgetPassword";//忘记密码
    public static final String isExitTelephoneUrl = serverUrl+"/change/isExitTelephone";//判断当前手机是否已注册
    public static final String changePasswordUrl = serverUrl+"/change/changePassword";//修改密码
    public static final String uploadHeadPhotoUrl = serverUrl+"/change/uploadHeadPhoto";//修改头像

    public static final String createProjectUrl = serverUrl+"/project/createProject";//创建项目
    public static final String getAllProjectUrl = serverUrl+"/project/getAllProject";//获取项目列表

    public static final String getAllNumberUrl = serverUrl+"/allNumber/getAllNumber";//获取所有的成员
    public static final String removeNumberUrl = serverUrl+"/allNumber/removeNumber";//删除某位成员

    public static final String getGoodProjectUrl = serverUrl+"/goodProject/getGoodProject";//获取优秀项目
    public static final String getGoodPersonUrl = serverUrl+"/goodPerson/getAllGoodPerson";//获取优秀人物

    public static final String publishActivityInfoUrl = serverUrl+"/activity/publishInformation";//发表活动信息
    public static final String onlyPublishActivityInfoUrl = serverUrl+"/activity/publishText";//只发表文字的活动信息

    public static final String getActivityInformationUrl = serverUrl + "/activity/getActivityInfo";//获取所有的活动信息

    public static final String leaveMessageUrl = serverUrl + "/leaveMessage/insertMessage";//留言

    //获取当前类的对象（单例）
    public static ApiInfo getmInstance(){
        if (mInstance == null){
            mInstance = new ApiInfo();
        }
        return mInstance;
    }


    //初始化服务器地址
    public void initServerUrl(String url){
        serverUrl = url;
    }
}
